package unitTests;


import static org.junit.Assert.assertEquals;

import org.junit.Before;
import org.junit.Test;

import datamodels.Conference;
import datamodels.GlobalDataStore;
/**
 * Performs JUnit testing on Conference class. 
 * 
 * @author Alan Meaker
 */

public class DataStoreAddConferenceTest 
{
	GlobalDataStore my_data_store;
	@Before
	public void instantiate()
	{
		my_data_store = new GlobalDataStore();
	}
	@Test
	public void addConferenceObjectTest()
	{
		int old_conference_count = my_data_store.getConferenceCount();
		my_data_store.addConferenceObject(new Conference("The new conference"));
		assertEquals("There is an issue with addition of a conference", old_conference_count + 1, my_data_store.getConferenceCount());
	}

}
